/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.com.minam.beans;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Alvaro
 */
@Entity
@Table(name = "SCATBP_TRANSMISION")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ScatbpTransmision.findAll", query = "SELECT s FROM ScatbpTransmision s"),
    @NamedQuery(name = "ScatbpTransmision.findByIdTrans", query = "SELECT s FROM ScatbpTransmision s WHERE s.idTrans = :idTrans"),
    @NamedQuery(name = "ScatbpTransmision.findByVNomTrans", query = "SELECT s FROM ScatbpTransmision s WHERE s.vNomTrans = :vNomTrans"),
    @NamedQuery(name = "ScatbpTransmision.findByVNomCorto", query = "SELECT s FROM ScatbpTransmision s WHERE s.vNomCorto = :vNomCorto")})
public class ScatbpTransmision implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_TRANS")
    private BigDecimal idTrans;
    @Size(max = 50)
    @Column(name = "V_NOM_TRANS")
    private String vNomTrans;
    @Size(max = 30)
    @Column(name = "V_NOM_CORTO")
    private String vNomCorto;

    public ScatbpTransmision() {
    }

    public ScatbpTransmision(BigDecimal idTrans) {
        this.idTrans = idTrans;
    }

    public BigDecimal getIdTrans() {
        return idTrans;
    }

    public void setIdTrans(BigDecimal idTrans) {
        this.idTrans = idTrans;
    }

    public String getVNomTrans() {
        return vNomTrans;
    }

    public void setVNomTrans(String vNomTrans) {
        this.vNomTrans = vNomTrans;
    }

    public String getVNomCorto() {
        return vNomCorto;
    }

    public void setVNomCorto(String vNomCorto) {
        this.vNomCorto = vNomCorto;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idTrans != null ? idTrans.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ScatbpTransmision)) {
            return false;
        }
        ScatbpTransmision other = (ScatbpTransmision) object;
        if ((this.idTrans == null && other.idTrans != null) || (this.idTrans != null && !this.idTrans.equals(other.idTrans))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pe.com.minam.beans.ScatbpTransmision[ idTrans=" + idTrans + " ]";
    }
    
}
